#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time          : 2022/12/15 19:36
# File          : time_str_to_temp.py
# @Author       : MingTai
# @Department   : platform_qa

import time

# 字符类型的时间
tss1 = '2013-10-10 23:40:01'
# 转换成时间数组
timeArray = time.strptime(tss1, "%Y-%m-%d %H:%M:%S")
# 转换成时间戳
timestamp = time.mktime(timeArray)

print(int(round(timestamp * 1000)))
